package com.coincalf.wallet.blockchain.bean.trx;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TrxBalance implements Serializable {
    private static final long serialVersionUID = 424297314788786303L;

    @JsonProperty("result")
    private Result result;

    @JsonProperty("constant_result")
    private List<Object> constantResult;

    @JsonProperty("transaction")
    private Object transaction;


    //请求返回异常会返回code和message
    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Result {

        @JsonProperty("result")
        private Boolean result;

        @JsonProperty("code")
        private String code;

        @JsonProperty("message")
        private String message;
    }

}
